package com.example.polarity;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Canvas;

public class Level {
	
	 //Bitmap for the background Image
	 public Bitmap LevelBackground;
	 
	 //Keep track of what Level Is Selected
	 public int LevelIndex = 0;
	 private int LevelId = 0;
	 private int LevelLayoutId = 0;
	 public Level(int CurLevel)
	 {
		 LevelIndex = CurLevel;
		 SetLevel(CurLevel);
	 }

	 public void SetLevel(int CurLevel)
	 {
		 switch(CurLevel)
		 {
		 	 case 1:
		 		 LevelId = R.id.Level1Layout;
		 		 LevelLayoutId = R.layout.level1;
				 break;
			 case 2:
		 		 LevelId = R.id.Level2Layout;
		 		 LevelLayoutId = R.layout.level2;
				 break;
			 case 3:
		 		 LevelId = R.id.Level3Layout;
		 		 LevelLayoutId = R.layout.level3;
				 break;
			 case 4:
		 		 LevelId = R.id.Level4Layout;
		 		 LevelLayoutId = R.layout.level4;
				 break;
		 	 case 5:
		 		 LevelId = R.id.Level5Layout;
		 		 LevelLayoutId = R.layout.level5;
				 break;
			 case 6:
		 		 LevelId = R.id.Level6Layout;
		 		 LevelLayoutId = R.layout.level6;
				 break;
			 case 7:
		 		 LevelId = R.id.Level7Layout;
		 		 LevelLayoutId = R.layout.level7;
				 break;
			 case 8:
		 		 LevelId = R.id.Level8Layout;
		 		 LevelLayoutId = R.layout.level8;
				 break;
		 }
	 }
	
	public int GetLevelId()
	{
		return LevelId;
	}
	
	public int GetLayoutId()
	{
		return LevelLayoutId;
	}
}
